<?php
/**
 * Extends views/details.
 * 
 * @author Klarna
 */
class klarna_details extends klarna_details_parent {
	/**
	 * Current class template name.
	 * @var string
	 */
	protected $_sThisTemplate = 'klarna_details.tpl';
	private $kutil = null;

	/**
	 * Adds extra information that is used in the view.
	 * 
	 * @Override
	 * @return returns Klarnas edited version of the template file.
	 */
	public function render() {
		parent::render();
		
		if(!$this->kutil) {
			$this->kutil = oxNew('klarnautil');
		}
		
		$this->_aViewData['kutil'] = $this->kutil;
		$this->_aViewData['kconf'] = $this->kutil->getKlarnaConfig();
		
		return $this->_sThisTemplate;
	}
}
?>